<?php

class NewsController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
       //$this->_helper->layout->setLayout('admin');	
       Zend_Loader::loadFile('../application/admin/models/News.php');
            
    }
    
    public function newsviewerAction()
	{
		$this->_helper->layout->setLayout('index_layout');
		Zend_Loader::loadFile("../application/default/models/News.php");
		$modFrontNews = new FrontNews();
    	$request = $this->getRequest();
    	$news_id = $request->getParam('id');
    	$news_arr = $modFrontNews->getNewsDetailsById($news_id, 'news1');
    	$this->view->news_arr = $news_arr;
	}
}